package com.heima.common.exception;

import com.heima.model.common.enums.AppHttpCodeEnum;

/**抛异常工具类
 * @author TheCai
 * @date 2021/5/23 20:41
 **/
public class CustException {
    public static void cust(AppHttpCodeEnum codeEnum){
        throw new CustomException(codeEnum);
    }
    public static void cust(AppHttpCodeEnum codeEnum,String msg){
        throw new CustomException(codeEnum,msg);
    }
}
